// @deno-types="https://github.com/SheetJS/sheetjs/raw/master/types/index.d.ts"
import XLSX from 'https://jspm.dev/xlsx';

const data = await Deno.readAll(Deno.stdin);
var workbook = XLSX.read(data, {type:"array"});
var first_sheet_name = workbook.SheetNames[0];
var worksheet = workbook.Sheets[first_sheet_name];

var json = XLSX.utils.sheet_to_json(worksheet);
console.log(JSON.stringify(json));